class DownMiddlewareOne(object):
    # 1.传递 request
    def process_request(self, request):
        print('Downone--中间件--request')
        return request

    # 2.传递response
    def process_response(self, response):
        print("DownOne--中间件--response")
        return response


class DownMiddlewareTwo(object):
    # 1.传递 request
    def process_request(self, request):
        print('DownTwo--中间件--request')
        return request

    # 2.传递response
    def process_response(self, response):
        print("DownTwo--中间件--response")
        return response